package com.lingo.mgr.enums;

import lombok.Getter;

@Getter
public enum OpenAiEnum {

    PROXY_ON("ON", "开启"),
    PROXY_OFF("OFF", "关闭"),
    ;

    private final String status;
    private final String desc;

    OpenAiEnum(String status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public String getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }

    public static String getValue(String type) {
        for (OpenAiEnum ele : values()) {
            if (ele.getStatus().equals(type)) {
                return ele.desc;
            }
        }
        return null;
    }
}
